home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / C⁄C++ OS8 / Everything / DDocData.h < prev    next >
Encoding:
Text File  |  1998-09-06  |  5.8 KB  |  248 lines  |  [TEXT/CWIE]

  1. // DDocData -- data class for Everything
  2.  
  3. #pragma once
  4.  
  5. #include "AMSignaler.h"
  6.  
  7.  
  8. const long    idStandard        = 'Stad';
  9. const long    idXx        = 'Xx  ';
  10. const long    idLR        = 'LR  ';
  11. const long    idLR2        = 'LR2 ';
  12. const long    idLR3        = 'LR3 ';
  13. const long    idLR4        = 'LR4 ';
  14. const long    idCheckbox        = 'Chex';
  15. const long    idCheckbox2        = 'Che2';
  16. const long    idNext        = 'Next';
  17. const long    idNext2        = 'Nex2';
  18. const long    idRadioGroup        = 'Radp';
  19. const long    idGroup        = 'Grop';
  20. const long    idGraphic        = 'Grac';
  21. const long    idBevel        = 'Bevl';
  22. const long    idText        = 'Text';
  23. const long    idSmall        = 'Smal';
  24. const long    idLarge        = 'Lare';
  25. const long    idX12345        = 'X145';
  26. const long    idX12345e6        = 'X126';
  27. const long    idPassword        = 'Pasd';
  28. const long    idDate        = 'Date';
  29. const long    idTime        = 'Time';
  30. const long    idStyled        = 'Styd';
  31. const long    idBars        = 'Bars';
  32. const long    idStandard2        = 'Sta2';
  33. const long    idGraphic2        = 'Gra2';
  34. const long    idSlider        = 'Slir';
  35. const long    idTickMarks        = 'Tics';
  36. const long    idNonDirectional        = 'Nonl';
  37. const long    idLittleArrows        = 'Lits';
  38. const long    idSpinner        = 'Spir';
  39. const long    idVolumeControl        = 'Voll';
  40. const long    idJimSSlider        = 'Jimr';
  41. const long    idStandard3        = 'Sta3';
  42. const long    idIndeterminate        = 'Inde';
  43. const long    idChasingArrows        = 'Chas';
  44. const long    idRectangle        = 'Rece';
  45. const long    idRoundRect        = 'Rout';
  46. const long    idBarberPole        = 'Bare';
  47. const long    idRoundBarber        = 'Rour';
  48. const long    idTools        = 'Toos';
  49. const long    idFromValuesList2        = 'Fro2';
  50. const long    idFromMenu        = 'Frou';
  51. const long    idTextList        = 'Tex2';
  52.  
  53. class AMEngine;
  54.  
  55. //----------
  56. class DDocData : public AMSignaler {
  57. public:
  58.                 DDocData ();
  59.     virtual        ~DDocData ();
  60.  
  61. public:
  62.     void        ReadFromFile    (AMEngine*        engine);
  63.     void        WriteToFile        (AMEngine*        engine);
  64.  
  65. public:
  66.     Boolean        GetStandard () const;
  67.     void        SetStandard    (Boolean        inValue);
  68.  
  69.     Boolean        GetXx () const;
  70.     void        SetXx    (Boolean        inValue);
  71.  
  72.     Boolean        GetLR () const;
  73.     void        SetLR    (Boolean        inValue);
  74.  
  75.     Boolean        GetLR2 () const;
  76.     void        SetLR2    (Boolean        inValue);
  77.  
  78.     Boolean        GetLR3 () const;
  79.     void        SetLR3    (Boolean        inValue);
  80.  
  81.     Boolean        GetLR4 () const;
  82.     void        SetLR4    (Boolean        inValue);
  83.  
  84.     Boolean        GetCheckbox () const;
  85.     void        SetCheckbox    (Boolean        inValue);
  86.  
  87.     Boolean        GetCheckbox2 () const;
  88.     void        SetCheckbox2    (Boolean        inValue);
  89.  
  90.     Boolean        GetNext () const;
  91.     void        SetNext    (Boolean        inValue);
  92.  
  93.     Boolean        GetNext2 () const;
  94.     void        SetNext2    (Boolean        inValue);
  95.  
  96.     SInt16        GetRadioGroup () const;
  97.     void        SetRadioGroup    (SInt16        inValue);
  98.  
  99.     SInt16        GetGroup () const;
  100.     void        SetGroup    (SInt16        inValue);
  101.  
  102.     SInt16        GetGraphic () const;
  103.     void        SetGraphic    (SInt16        inValue);
  104.  
  105.     SInt16        GetBevel () const;
  106.     void        SetBevel    (SInt16        inValue);
  107.  
  108.     SInt16        GetText () const;
  109.     void        SetText    (SInt16        inValue);
  110.  
  111.     StringPtr    GetSmall    (Str255        outStr = nil) const;
  112.     void        SetSmall    (Str255        inValue);
  113.     void        SetSmall    (CharsHandle    inValue);
  114.  
  115.     StringPtr    GetLarge    (Str255        outStr = nil) const;
  116.     void        SetLarge    (Str255        inValue);
  117.     void        SetLarge    (CharsHandle    inValue);
  118.  
  119.     SInt32        GetX12345 () const;
  120.     void        SetX12345    (SInt32        inValue);
  121.  
  122.     double        GetX12345e6 () const;
  123.     void        SetX12345e6    (double        inValue);
  124.  
  125.     StringPtr    GetPassword    (Str255        outStr = nil) const;
  126.     void        SetPassword    (Str255        inValue);
  127.     void        SetPassword    (CharsHandle    inValue);
  128.  
  129.     LongDateRec        GetDate () const;
  130.     void        SetDate    (LongDateRec        inValue);
  131.  
  132.     LongDateRec        GetTime () const;
  133.     void        SetTime    (LongDateRec        inValue);
  134.  
  135.     StringPtr    GetStyled    (Str255        outStr = nil) const;
  136.     void        SetStyled    (Str255        inValue);
  137.     void        SetStyled    (CharsHandle    inValue);
  138.  
  139.     UInt16        GetBars () const;
  140.     void        SetBars    (UInt16        inValue);
  141.  
  142.     SInt16        GetStandard2 () const;
  143.     void        SetStandard2    (SInt16        inValue);
  144.  
  145.     SInt16        GetGraphic2 () const;
  146.     void        SetGraphic2    (SInt16        inValue);
  147.  
  148.     SInt16        GetSlider () const;
  149.     void        SetSlider    (SInt16        inValue);
  150.  
  151.     SInt16        GetTickMarks () const;
  152.     void        SetTickMarks    (SInt16        inValue);
  153.  
  154.     SInt16        GetNonDirectional () const;
  155.     void        SetNonDirectional    (SInt16        inValue);
  156.  
  157.     SInt16        GetLittleArrows () const;
  158.     void        SetLittleArrows    (SInt16        inValue);
  159.  
  160.     SInt16        GetSpinner () const;
  161.     void        SetSpinner    (SInt16        inValue);
  162.  
  163.     SInt16        GetVolumeControl () const;
  164.     void        SetVolumeControl    (SInt16        inValue);
  165.  
  166.     SInt16        GetJimSSlider () const;
  167.     void        SetJimSSlider    (SInt16        inValue);
  168.  
  169.     SInt16        GetStandard3 () const;
  170.     void        SetStandard3    (SInt16        inValue);
  171.  
  172.     SInt16        GetIndeterminate () const;
  173.     void        SetIndeterminate    (SInt16        inValue);
  174.  
  175.     SInt16        GetChasingArrows () const;
  176.     void        SetChasingArrows    (SInt16        inValue);
  177.  
  178.     SInt16        GetRectangle () const;
  179.     void        SetRectangle    (SInt16        inValue);
  180.  
  181.     SInt16        GetRoundRect () const;
  182.     void        SetRoundRect    (SInt16        inValue);
  183.  
  184.     SInt16        GetBarberPole () const;
  185.     void        SetBarberPole    (SInt16        inValue);
  186.  
  187.     SInt16        GetRoundBarber () const;
  188.     void        SetRoundBarber    (SInt16        inValue);
  189.  
  190.     SInt16        GetTools () const;
  191.     void        SetTools    (SInt16        inValue);
  192.  
  193.     SInt16        GetFromValuesList2 () const;
  194.     void        SetFromValuesList2    (SInt16        inValue);
  195.  
  196.     SInt16        GetFromMenu () const;
  197.     void        SetFromMenu    (SInt16        inValue);
  198.  
  199.     SInt16        GetTextList () const;
  200.     void        SetTextList    (SInt16        inValue);
  201.  
  202. protected:
  203.     Boolean        mStandard;
  204.     Boolean        mXx;
  205.     Boolean        mLR;
  206.     Boolean        mLR2;
  207.     Boolean        mLR3;
  208.     Boolean        mLR4;
  209.     Boolean        mCheckbox;
  210.     Boolean        mCheckbox2;
  211.     Boolean        mNext;
  212.     Boolean        mNext2;
  213.     SInt16        mRadioGroup;
  214.     SInt16        mGroup;
  215.     SInt16        mGraphic;
  216.     SInt16        mBevel;
  217.     SInt16        mText;
  218.     Str255        mSmall;
  219.     Str255        mLarge;
  220.     SInt32        mX12345;
  221.     double        mX12345e6;
  222.     Str255        mPassword;
  223.     LongDateRec        mDate;
  224.     LongDateRec        mTime;
  225.     Str255        mStyled;
  226.     UInt16        mBars;
  227.     SInt16        mStandard2;
  228.     SInt16        mGraphic2;
  229.     SInt16        mSlider;
  230.     SInt16        mTickMarks;
  231.     SInt16        mNonDirectional;
  232.     SInt16        mLittleArrows;
  233.     SInt16        mSpinner;
  234.     SInt16        mVolumeControl;
  235.     SInt16        mJimSSlider;
  236.     SInt16        mStandard3;
  237.     SInt16        mIndeterminate;
  238.     SInt16        mChasingArrows;
  239.     SInt16        mRectangle;
  240.     SInt16        mRoundRect;
  241.     SInt16        mBarberPole;
  242.     SInt16        mRoundBarber;
  243.     SInt16        mTools;
  244.     SInt16        mFromValuesList2;
  245.     SInt16        mFromMenu;
  246.     SInt16        mTextList;
  247. };
  248.